using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace ProductKeysWin
{
    /// <summary>
    /// Interaction logic for AboutWindow.xaml
    /// </summary>

    public partial class AboutWindow : System.Windows.Window
    {

        public AboutWindow()
        {
            InitializeComponent();
            this.AllowsTransparency = true;
            this.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            this.ShowInTaskbar = false;
        }

        protected void WindowLoaded(object sender, RoutedEventArgs e)
        {
            lblVersion.Content = "Product Key Manager v" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
            lbldotNetVersion.Content = ".NET CLR Version: " + System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion();
        }

        protected void OkClick(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

    }
}